package common.config;

import lombok.Data;

/**
 * @author baolaiqiang
 */
@Data
public class AppConfig {


    /**
     * 需要换
     * 应用id号码 也就是webm后台 应用资源管理的前面 id
     * // 也是权限获取的id
     */
    public static int APP_ID = 10117;

    // 需要换
    // 也就是webm里面的单点登录设置的项目id 585
    public static int SSO_ID = 605;
    // 需要换
    // 也就是webm里面的单点登录设置的项目自己设置的 的加密密匙
    public static String SSO_SKEY = "qfxcte";
    // 用于获取泉方学习中心获取权限的通用加密key 多个项目共用
    public static String SSO_SKEYOTHER = "QFXC";

    // 子项目不允许清除cookie 否则到我那边权限拿不到用户也还要跳转我的登录页
    public static boolean delUsrCookie = false;


    //项目名称 R语言论文助手
    public static final String COOKIE_KEY = "qf3.1415";

    public static String COOKIE_DOMAIN = "yuntsg.com";

    // 需要换
    public static String BASE_URL = "https://aistudy.yuntsg.com/";

    public static String QFXCOPENAPIURL = "https://qfxcte.qfxuexi.com/openapi/getResPermission";
    //获取当前用户全部权限 各个项目通用地址 不用还
    public static String QFXCOPENAPIURLALL = "https://qfxcte.qfxuexi.com/openapi/getAllResPermission";


    public static String LOGIN_URL = "https://user.tsgyun.com/user/ssologin?sid=" + SSO_ID;

    //用于支付后返回项目首页
    public static String NO_PERMISSION_URL = "https://qfxcte.qfxuexi.com/pay/vip.html?rebackrul=" + BASE_URL;

    public static String RSA_PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCdGLfzxojTNuMqwrQxFNBqtN2eZ0l8UlCxQsUOIxs6LhWUsZ2v/huOwiOoaoM4lytZG5IRn2YmyeHq7e07rRfIQD+YI46jcZyhGS9F1nj4cCs8TxcJCOPXrJiHdOoZe5UhjZlWaU1F67dNfWtPe4ZFXcoPCNoWisX4u4bOq6lp6wIDAQAB";

    public static String RSA_PRIVATE_KEY = "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAJ0Yt/PGiNM24yrCtDEU0Gq03Z5nSXxSULFCxQ4jGzouFZSxna/+G47CI6hqgziXK1kbkhGfZibJ4ert7TutF8hAP5gjjqNxnKEZL0XWePhwKzxPFwkI49esmId06hl7lSGNmVZpTUXrt019a097hkVdyg8I2haKxfi7hs6rqWnrAgMBAAECgYAS5p9zQAbESs1IHsbpRNTSkdI8NbccsxasTRlCWyzycgr8qeYL/6m3IlqB79a730xC21NWtXPn5NA+oMOzM18x8f5wI8K3uDdWECkZLs6uGpl2IGJOiN9Z8jHd4/avC6Tbj/qqc2VnYefsqyRQsOeWCqrQvTWj9zoB6UlOEhHQSQJBAP/moMibQlBnwcPr2d4ulmG0OMymuhwYV+lJB9PxvJT3jPY4pmsb244tjD2kKCq4FP2h0cbk8FcTHz6brzyk7r0CQQCdKEtXF3/QGlaI4VQkcyGyywOUWKSIq9mUoSZJMaqVQdKj96TKN/LQGmhrBi1ISkdJ9GBzZF/d/MWTimzjFvnHAkAx4NwZ/dkxHugvrfrrSZ1aMeyYRy8jZsNL30Y9U3L0fkPlgik921IyJkKdiS+jE/pTbYUcBWerMTj31RSU93jpAkB1bghtuUdt7mA+w3AmFElX2c6A6IN5BD/+iTOceZonERoeHwtpdsjeqvzfC6yGWcpO/mWbk6L2ssvHZSXbwe09AkEA4Hel2UhYsFaqRg1piTjPJW37DmK/enBH95p0q/+DH0t/vmxzTRuwFXmSZLn+OlsDuYu6Tdf+f5pgUeBhcHy3zw==";


    public static int CACHE_EXPIRE_SECOND = 12 * 60 * 60;


    public static int PLATFORM_PC = 1;

    public static int PLATFORM_MOBILE = 2;

}
